using UnityEngine;
using System.Collections;

public class Hud : MonoBehaviour {
	
	#region Fields
	// Labels sizes
	private float scoreLabelWidth = 120f;
	private float scoreLabelHeight = 20f;
	private float lifesLabelWidth = 60f;
	private float lifesLabelHeight = 20f;
	
	// Initial position
	private float xOffset = 10f;
	private float yOffset = 10f;

	#endregion
	
	#region Functions
	void OnGUI()
    {
        // Create labels for the HUD
        GUI.Label(new Rect(xOffset, yOffset, scoreLabelWidth, scoreLabelHeight), "Score: " + Player.Score);
        GUI.Label(new Rect(xOffset, yOffset + scoreLabelHeight, lifesLabelWidth, lifesLabelHeight), "Lifes: " + Player.Lifes);
    }
	#endregion
	
}
